import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import WxJssdk from '@utils/wxJssdk.js';
import 'lib-flexible/flexible';
import '@assets/css/reset.css';
import '@assets/css/swiper-3.4.2.min.css';
import { mixinFn, getString } from '@utils/utils';
Vue.mixin(mixinFn);

import VueClipboard from 'vue-clipboard2';
Vue.use(VueClipboard);

Vue.config.productionTip = false;
Vue.prototype.wxJssdk = WxJssdk;
if (getString('debug')) {
  eruda.init();
}

import loading from '@components/loading/loading.js'; // 引入loading
Vue.use(loading);

console.log(123, process.env);
// localStorage.setItem('openId', 'oo_gw1VmYRpH7LJs8_q9booKuCj4');
// localStorage.setItem('token', 'eyJhbGciOiJIUzI1NiIsInppcCI6IkdaSVAifQ.H4sIAAAAAAAAAB2LWw7CIBAA77LfJQEpj-1teGwNRqlxIakx3l3wczIzH7i1AhsolZUkssKEHMVq7UWgDkmYaMjSbrOTHhYoocGmrPSI0nm_APc4bn5zo8f0zAP3UkNNNDj0PDh1bsfUdD7_Oxo0Zu7341qq6EyvkWlcnYbvD2nnv4yTAAAA.XdBi_pmIr4I5vNkqthOFrhv9WZZCDR3ZqcdQOWTCYww');
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
